home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-07-25 | 2.7 KB | 74 lines | [TEXT/ToyS] |
- -----------------------------------------------------------------------
- -- StarNine Technologies, Inc., hereby disclaims all copyright interest
- -- in the following source code.
- --
- -- This source code is free and has been placed into the public domain.
- -- You can redistribute it, modify it (including these comments) and/or
- -- create derivative works from it as you see fit.
- --
- -- This source code is made available in the hope that it will be useful,
- -- but WITHOUT ANY WARRANTY; without even the implied warranty of
- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- -----------------------------------------------------------------------
-
- (*
- ** Uncomment the below settings when testing outside of ListSTAR Server
- ** ListSTAR Server will automatically prepend these settings to your TEXT script
- ** before compiling and executing it.
- *)
- (************************
- --set s9MailService to "Test Service"
- --set s9SenderName to "Test Name"
- --set s9SenderEmailAddress to "Test Address"
- --set s9SenderMC to ""
- --set s9SenderMCZone to ""
- --set s9SenderMCEmailAddress to ""
- --set s9MailSubject to "Test Subject"
- --set s9MailFileName to "Test Filename"
- --set s9RegularExpression to {{"Test Data"}, {"test data 2", "test data 3"}}
- *)
- (************************* end of test settings *************************)
-
- --
- -- Try to automatically find our AppleScript library. It should be in
- -- ListSTAR's "ADMIN" folder.
- --
- set bootDisk to (path to startup disk as string)
- set appleScriptLibrary to ""
-
- tell application "Finder"
- if exists of item (bootDisk & "ListSTAR/SMTP:ListSTAR Server") then
- set appleScriptLibrary to bootDisk & "ListSTAR/SMTP:ADMIN:AppleScript.library"
- else if exists of item (bootDisk & "ListSTAR/MS:ListSTAR Server") then
- set appleScriptLibrary to bootDisk & "ListSTAR/MS:ADMIN:AppleScript.library"
- else if exists of item (bootDisk & "ListSTAR/POP:ListSTAR Server") then
- set appleScriptLibrary to bootDisk & "ListSTAR/POP:ADMIN:AppleScript.library"
- else if exists of item (bootDisk & "ListSTAR/QM:ListSTAR Server") then
- set appleScriptLibrary to bootDisk & "ListSTAR/QM:ADMIN:AppleScript.library"
- end if
- --
- -- If we can't find it, ask the user where it is.
- --
- if (exists of item appleScriptLibrary) is false then
- choose file with prompt "Locate ListSTAR's “AppleScript.library”" of type {"osas"}
- set appleScriptLibrary to (result as string)
- end if
- end tell
-
- set ListSTARLib to (load script file appleScriptLibrary)
-
- tell ListSTARLib
- try
- (*
- ** Invoke the appleScriptLibrary routine that will actually
- ** return a message to the sender with the paramters and their
- ** values shown.
- *)
- returnParameterMessage()
- return 0
- on error errString number errNum
- return errNum
- end try
- end tell
-
- return 0